<?php

namespace App\Models;

use App\Library\Models\Entity;
use Illuminate\Database\Eloquent\SoftDeletes;

class BoxModel extends Entity
{
    use SoftDeletes;

    protected $table = 'box';
    
    protected $casts = ['tag' => 'json', 'main_img_ids' => 'json', 'desc_img_ids' => 'json', 'arg' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'status',
        'sell_out',
        'invalid',
        'audit_status',
        'quantity',
        'lucky',
        'file_id',
        'title',
        'tag',
        'price',
        'max_price',
        'is_end',
        'start_at',
        'end_at',
        'freight',
        'publish_id',
        'ok_reason',
        'fail_reason',
        'audit_at',
        'sort',
        'recommend',
        'order_count',
        'main_img_ids',
        'desc_img_ids',
        'video_id',
        'arg',
        'remark',
        'description',
        'created_at',
        'updated_at',
        'deleted_at'
    ];
}
